package com.jinmdz.fmis.mapper.entity;

import com.jinmdz.fmis.mapper.annotation.MyColumn;
import com.jinmdz.fmis.mapper.annotation.MyTable;
import com.jinmdz.fmis.mapper.base.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 固定资产表Entity
 *
 * @author generator
 * @date 2020-03-12 17:08
 */
@MyTable(value = "FixedAssetsEntity", name = "fixed_assets", comment = "固定资产表")
public class FixedAssetsEntity extends BaseEntity {
    /**
     * 资产编号
     */
    @MyColumn(value = "assetsNo", name = "assets_no", comment = "资产编号")
    private String assetsNo;

    /**
     * 资产名称
     */
    @MyColumn(value = "assetsName", name = "assets_name", comment = "资产名称")
    private String assetsName;

    /**
     * 规格型号
     */
    @MyColumn(value = "specificationNo", name = "specification_no", comment = "规格型号")
    private String specificationNo;

    /**
     * 计量单位
     */
    @MyColumn(value = "assetsUnit", name = "assets_unit", comment = "计量单位")
    private String assetsUnit;

    /**
     * 生产厂家
     */
    @MyColumn(value = "manufacturer", name = "manufacturer", comment = "生产厂家")
    private String manufacturer;

    /**
     * 使用部门
     */
    @MyColumn(value = "useDepartment", name = "use_department", comment = "使用部门")
    private String useDepartment;

    /**
     * 资产来源
     */
    @MyColumn(value = "assetsSource", name = "assets_source", comment = "资产来源")
    private String assetsSource;

    /**
     * 折旧程度
     */
    @MyColumn(value = "depreciationDegree", name = "depreciation_degree", comment = "折旧程度")
    private String depreciationDegree;

    /**
     * 折旧年限
     */
    @MyColumn(value = "depreciationYear", name = "depreciation_year", comment = "折旧年限", required = true)
    private Integer depreciationYear;

    /**
     * 原值
     */
    @MyColumn(value = "originalValue", name = "original_value", comment = "原值", required = true)
    private BigDecimal originalValue;

    /**
     * 启用日期
     */
    @MyColumn(value = "enableDate", name = "enable_date", comment = "启用日期")
    private Date enableDate;

    /**
     * 使用状态
     */
    @MyColumn(value = "useState", name = "use_state", comment = "使用状态")
    private String useState;

    /**
     * 启用日期
     */
    @MyColumn(value = "scrapDate", name = "scrap_date", comment = "启用日期")
    private Date scrapDate;

    /**
     * 备注
     */
    @MyColumn(value = "remark", name = "remark", comment = "备注")
    private String remark;


    public String getAssetsNo() {
        return assetsNo;
    }

    public FixedAssetsEntity setAssetsNo(String assetsNo) {
        this.assetsNo = assetsNo;
        return this;
    }

    public String getAssetsName() {
        return assetsName;
    }

    public FixedAssetsEntity setAssetsName(String assetsName) {
        this.assetsName = assetsName;
        return this;
    }

    public String getSpecificationNo() {
        return specificationNo;
    }

    public FixedAssetsEntity setSpecificationNo(String specificationNo) {
        this.specificationNo = specificationNo;
        return this;
    }

    public String getAssetsUnit() {
        return assetsUnit;
    }

    public FixedAssetsEntity setAssetsUnit(String assetsUnit) {
        this.assetsUnit = assetsUnit;
        return this;
    }

    public String getManufacturer() {
        return manufacturer;
    }

    public FixedAssetsEntity setManufacturer(String manufacturer) {
        this.manufacturer = manufacturer;
        return this;
    }

    public String getUseDepartment() {
        return useDepartment;
    }

    public FixedAssetsEntity setUseDepartment(String useDepartment) {
        this.useDepartment = useDepartment;
        return this;
    }

    public String getAssetsSource() {
        return assetsSource;
    }

    public FixedAssetsEntity setAssetsSource(String assetsSource) {
        this.assetsSource = assetsSource;
        return this;
    }

    public String getDepreciationDegree() {
        return depreciationDegree;
    }

    public FixedAssetsEntity setDepreciationDegree(String depreciationDegree) {
        this.depreciationDegree = depreciationDegree;
        return this;
    }

    public Integer getDepreciationYear() {
        return depreciationYear;
    }

    public FixedAssetsEntity setDepreciationYear(Integer depreciationYear) {
        this.depreciationYear = depreciationYear;
        return this;
    }

    public BigDecimal getOriginalValue() {
        return originalValue;
    }

    public FixedAssetsEntity setOriginalValue(BigDecimal originalValue) {
        this.originalValue = originalValue;
        return this;
    }

    public Date getEnableDate() {
        return enableDate;
    }

    public FixedAssetsEntity setEnableDate(Date enableDate) {
        this.enableDate = enableDate;
        return this;
    }

    public String getUseState() {
        return useState;
    }

    public FixedAssetsEntity setUseState(String useState) {
        this.useState = useState;
        return this;
    }

    public Date getScrapDate() {
        return scrapDate;
    }

    public FixedAssetsEntity setScrapDate(Date scrapDate) {
        this.scrapDate = scrapDate;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public FixedAssetsEntity setRemark(String remark) {
        this.remark = remark;
        return this;
    }
}